package xq.gwt.ui.widgets.property;


import xq.gwt.mvc.controller.EntityArrayPropertyController;
import xq.gwt.mvc.model.EntityArrayPropertyModel;
import xq.gwt.mvc.model.EntityModel;
import xq.gwt.mvc.view.EntityArrayPropertyView;
import xq.gwt.mvc.view.ViewChangedListener;
import xq.gwt.ui.widgets.entity.EntityArrayPresenter;

public class EntityArrayPropertyPresenter extends EntityArrayPresenter implements EntityArrayPropertyView{
	EntityArrayPropertyController controller;
	
	
		
	
	@Override
	protected void init() {	
		super.init();		
		controller = new EntityArrayPropertyController(this);
	}

	@Override
	public void setError(String errorMessage) {		
		
	}

	@Override
	public void clearError() {
	
		
	}

	@Override
	public void setEnabled(boolean enabled) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setRequired(boolean required) {
		
		
	}

	@Override
	public void setName(String name) {
		
		
	}

	@Override
	public void setTitle(String title) {
       entityGrid.setTitle(title);
		
	}

	@Override
	public void addViewChangedListener(ViewChangedListener listener) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void removeViewChangedListener(ViewChangedListener listener) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public EntityModel[] getEntities() {		
		return entities;
	}
	
	public void setModel(EntityArrayPropertyModel model){
		controller.setPropertyModel(model);
	}

}
